home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc20
/
gemfsc20.lzh
/
GEMFBIND
/
VLOCATOR.S
< prev
next >
Wrap
Text File
|
1993-03-26
|
1KB
|
54 lines
;*========================================================================
;* VDIFAST Public Domain VDI bindings.
;*========================================================================
;*------------------------------------------------------------------------
;* Input locator.
;*------------------------------------------------------------------------
globl _vsm_locator
_vsm_locator:
globl _vrq_locator
_vrq_locator:
; .cargs #8,handle.w,x.w,y.w,xout.l,yout.l,term.l
handle = 8
x = 10
y = 12
xout = 14
yout = 18
term = 22
link a6,#-4 ;* Allocate ptsout[2].
; VContrl #28,,#1
move.w handle(a6),-(sp) ; contrl[6]
clr.l -(sp) ; contrl[5,4]
clr.l -(sp) ; contrl[3,2]
move.w #1,-(sp) ; contrl[1]
move.w #28,-(sp) ; contrl[0]
pea -4(a6) ;* -> ptsout
move.l term(a6),-(sp) ;* -> intout
pea x(a6) ;* -> ptsin
subq.l #4,sp ;* -> intin
pea 16(sp) ;* -> contrl
move.l sp,d1
jsr vditrap
move.l xout(a6),a0 ;* Return x
move.w -4(a6),(a0) ;* from ptsout[0].
move.l yout(a6),a0 ;* Return y
move.w -2(a6),(a0) ;* from ptsout[1].
move.w 28(sp),d0 ;* Contrl[4] (number of intout's)
lsl.w #1,d0 ;* Shifted by one, per specs, OR
or.w 24(sp),d0 ;* in Contrl[2] (number of ptsout's).
unlk a6
rts
end